
package com.faithbj.device.model.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author jrn E-mail: rinanjin@gmail.com
 * @version 0.1 
 * 创建时间：2012-5-15 上午12:44:17
 * 类说明: 费用结算表
 */
@Entity
@Table(name = "cost")
public class Cost implements Serializable
{
	private static final long serialVersionUID = 1L;

	private String id;
	
	private String accounts;
	
	private String unitPrice;
	
	private Integer sampleCount;
	
	private Integer testCost;
	
	private String servProject;
	
	private String sbjNumber;
	
	private String agent;
	
	private String status;

	@Id
	@Column(length = 32, nullable = true)
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	public String getId()
	{
		return id;
	}

	@Column(name = "accounts", nullable = false)
	public String getAccounts()
	{
		return accounts;
	}

	@Column(name = "unit_price", nullable = false)
	public String getUnitPrice()
	{
		return unitPrice;
	}

	@Column(name = "sample_count", nullable = false)
	public Integer getSampleCount()
	{
		return sampleCount;
	}

	@Column(name = "test_cost", nullable = false)
	public Integer getTestCost()
	{
		return testCost;
	}

	@Column(name = "serv_project", nullable = false)
	public String getServProject()
	{
		return servProject;
	}

	@Column(name = "sbj_number", nullable = false)
	public String getSbjNumber()
	{
		return sbjNumber;
	}

	@Column(name = "agent", nullable = false)
	public String getAgent()
	{
		return agent;
	}
	
	@Column(name = "status", nullable = false)
	public String getStatus()
	{
		return status;
	}

	public void setStatus(String status) 
	{
		this.status = status;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public void setAccounts(String accounts) 
	{
		this.accounts = accounts;
	}

	public void setUnitPrice(String unitPrice)
	{
		this.unitPrice = unitPrice;
	}

	public void setSampleCount(Integer sampleCount)
	{
		this.sampleCount = sampleCount;
	}

	public void setTestCost(Integer testCost)
	{
		this.testCost = testCost;
	}

	public void setServProject(String servProject)
	{
		this.servProject = servProject;
	}

	public void setSbjNumber(String sbjNumber)
	{
		this.sbjNumber = sbjNumber;
	}

	public void setAgent(String agent)
	{
		this.agent = agent;
	}
}
